package top.hudk.design.single;

/**
 * 作用：饿汉式单例模式
 *
 * @author hudk
 * @date 2020/3/1 15:48
 */
public class HungrySingleton {
    private HungrySingleton instance = new HungrySingleton();
    private HungrySingleton(){

    }
    public HungrySingleton getInstance(){
        return instance;
    }
}
